package com.xinchao.job.mapper.quartz;

import com.xinchao.common.vo.WeatherVO;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName WeatherMapper
 * @Description 天气mapper
 * @Author HanQinrui
 * @Date 2018/9/4 17:41
 * @Version 1.0
 **/
public interface WeatherMapper {
    /**
     * 保存天气信息
     * @param weatherVO 天气信息
     * @param addTime 添加时间
     */
    void insertWeather(@Param("weatherVO") WeatherVO weatherVO, @Param("addTime") Long addTime);

    /**
     * 获取天气信息
     * @param cityName 城市
     * @return
     */
    WeatherVO getWeatherInfo(@Param("cityName") String cityName);
}
